Skip to content

IObserverAsync interface

Defined in

Namespace: ReactiveUI.Extensions.Async Assembly: ReactiveUI.Extensions.dll Full name: ReactiveUI.Extensions.Async.IObserverAsync<T> Modifiers: public abstract

Summary

        Defines an asynchronous observer that receives notifications about a sequence of values, completion, or errors, and
        supports asynchronous resource cleanup.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Class hierarchy
classDiagram
class IObserverAsync~T~
class IAsyncDisposable {
    <>
}
IAsyncDisposable <|.. IObserverAsync~T~

Implements: IAsyncDisposable

Remarks

Implementations of this interface allow for non-blocking, asynchronous handling of data streams, including support for cancellation and proper disposal of resources. This is useful in scenarios where observers need to process events or data asynchronously, such as in reactive or event-driven programming models.

Methods

NameSummary
OnCompletedAsyncPerforms asynchronous completion logic in response to the specified result.
OnErrorResumeAsyncHandles the specified error and resumes asynchronous processing, if possible.
OnNextAsyncAsynchronously processes the next value in the sequence.